/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
import Vue from 'vue';
// eslint-disable-next-line
// @ts-ignore

export default function registerPlugin () {
    // eslint-disable-next-line 
    // @ts-ignore
    let resolveComponent = require.context('.', false, /\.ts$/);
    resolveComponent.keys()
        .filter((key: string) => !key.includes('index'))
        .forEach((filename: string) => {
            let pluginFn = resolveComponent(filename);
            let install = pluginFn.default || pluginFn;
            install(Vue);
        });
}

